livepatch: Bubble up sanity checks on Elf relocs
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 12 Aug 2016 20:03:18 +0000 (16:03 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 9 Sep 2016 15:48:21 +0000 (11:48 -0400)
commitaa1ae74cb565840a7994c803b4bd935d64d0dce5
treef40c0f9dcd1eedfdc6ab06201f633653143ed7ed
parentc085c4eac852b536a2d37188b0e14b715de20621
livepatch: Bubble up sanity checks on Elf relocs

The checks for SHT_REL[,A] ELF sanity checks does not need to
be in the platform specific file and can be bubbled up
in the platform agnostic file.

This makes the ARM 32/64 implementation easier as the
duplicate checks don't have to be in the platform specific files.

Acked-by: Jan Beulich <jbeulich@suse.com> [x86 part]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/arch/x86/livepatch.c
xen/common/livepatch_elf.c